#ifndef SOCKS5_ACTION_SERVER_H
#define SOCKS5_ACTION_SERVER_H
#pragma once

#include <KAcceptorAction.h>

class S5Server;

class S5ActionServer : public KAcceptorAction {
public:
    S5ActionServer(LONG max, LONG extra) : KAcceptorAction(max, extra) {}
protected:
    S5Server *server() const;
protected:
    void onClientsChanged(LONG current);
    bool onNewClient(KSocket *client);
    friend class S5ActionClient;
};

#endif // SOCKS5_ACTION_SERVER_H